const Service = require('egg').Service

class PersonalService extends Service {

  async getPersonal(username) {
    return await this.app.model.User.findAll({
      attributes: ['username', 'headImg','selfIntroduction'],
      where:{
        username: username
      }
    })
  }

}

module.exports = PersonalService